import Vue from 'vue'
import Router from 'vue-router'
import Home from './pages/Home.vue'
import CivilizedSichuan from './pages/CivilizedSichuan.vue'
import VolunteerSichuan from './pages/VolunteerSichuan.vue'
import LeiFengHotline from './pages/LeiFengHotline.vue'

Vue.use(Router)

export default new Router({
    mode: 'history',
    routes: [
        {
            path: '/',
            name: 'Home',
            component: Home
        },
        {
            path: '/civilized',
            name: 'CivilizedSichuan',
            component: CivilizedSichuan
        },
        {
            path: '/volunteer',
            name: 'VolunteerSichuan',
            component: VolunteerSichuan
        },
        {
            path: '/volunteer/:page',
            name: 'VolunteerSichuanPage',
            component: VolunteerSichuan,
            props: true
        },
        {
            path: '/hotline',
            name: 'LeiFengHotline',
            component: LeiFengHotline
        },
        {
            path: '/hotline/:page',
            name: 'LeiFengHotlinePage',
            component: LeiFengHotline,
            props: true
        }
    ]
})